const { contextBridge, ipcRenderer } = require("electron");

contextBridge.exposeInMainWorld('electronAPI', {
    minimizeWin: (args) => ipcRenderer.send('window-min', args),
    restoreOrMaxWin: (args) => ipcRenderer.send('window-max', args),
    closeWindow: args => ipcRenderer.send('window-close', args)
})
